package com.yanqu.road.entity.activity.oldplayerreturn;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_return_player_task_reward")
public class OldPlayerReturnTaskRewardData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(update = true, desc = "活动条件id")
    private int conditionId;
    @FieldTypeAnnotation(desc = "条件奖励")
    private List<OldPlayerReturnAddtionGood> conditionReward;

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getConditionId() {
        return conditionId;
    }
    public void setConditionId(int conditionId) {
        if (this.conditionId != conditionId) {
            this.conditionId = conditionId;
            setOp(DataStatus.Update);
        }
    }

    public java.util.List<com.yanqu.road.entity.activity.oldplayerreturn.OldPlayerReturnAddtionGood> getConditionReward() {
        return conditionReward;
    }
    public void setConditionReward(java.util.List<com.yanqu.road.entity.activity.oldplayerreturn.OldPlayerReturnAddtionGood> conditionReward) {
        if (null == conditionReward){
            return;
        }
        if (this.conditionReward == null || !this.conditionReward.equals(conditionReward)) {
            this.conditionReward = conditionReward;
            setOp(DataStatus.Update);
        }
    }

}
